package com.adkfp.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.adkfp.bean.ADKUserInfoBean;

/**
 * class name:ADKUserInfoDaoMapper接口 <BR>
 * class description: ADKUserInfo表的增删改查 <BR>
 * Remark: <BR>
 * @version 1.00 2019年01月03日
 * @author JACK)jackwei
 */
public interface ADKUserInfoDaoMapper{
	public void insert(ADKUserInfoBean bean);//插入一条记录
	public void delete(@Param("id")Integer id);//删除一条记录
	public void update(ADKUserInfoBean bean);//更新一条记录
	public ADKUserInfoBean findById(@Param("id")Integer id);//根据id查询一条记录
	public List<ADKUserInfoBean> findByCondition(ADKUserInfoBean bean);//根据bean里面的条件(非空)查询所有记录
	public List<ADKUserInfoBean> afindByCondition(ADKUserInfoBean bean);
	public long findByConditionCount(ADKUserInfoBean bean);//根据bean里面的条件(非空)查询所有记录条数
	public long afindByConditionCount(ADKUserInfoBean bean);
	public ADKUserInfoBean finduseridById(String userid);//通过autoid查找userid
	//用于权限组
	public List<ADKUserInfoBean> pfindByCondition(ADKUserInfoBean bean);
	public long pfindByConditionCount(ADKUserInfoBean bean);
	//用于人员权限的模糊查询
	public List<ADKUserInfoBean> cfindByCondition(ADKUserInfoBean bean);
	public long cfindByConditionCount(ADKUserInfoBean bean);
	//用于权限组-人员的增加人员
	public List<ADKUserInfoBean> ufindByCondition(ADKUserInfoBean bean);
	public long ufindByConditionCount(ADKUserInfoBean bean);
	//验证名称唯一(FMY)
	public long checkSname(ADKUserInfoBean bean);
}